<?php
    header("Content-type: text/html; charset=utf-8"); 
    require_once "class/JSON.php";
    
    $json = new Services_JSON();
    
    $arr = array(  
	'name' => '杨红伟',  
	'nick' => '子弹兄',  
	'contact' => 
        array(  
        	'email' => '403236160@qq.com',  
        	'website' => 'http://www.360sites.cn',  
    	)  
    );  
    $result = $json->encode($arr);
    echo $result;
    
    

